// import Axios from 'axios'
import { axios, baseUrl } from '@/libs/util'

export const ImportJZPerson = formData => {
  return axios.post('api/JZData/ImportJZPerson', formData)
}

export const SearchJZGroup = formData => {
  return axios.post('api/JZData/SearchJZGroup', formData)
}

export const SearchCommodity = () => {
  return axios.post('api/JZData/SearchCommodity')
}

export const SaveCommodity = formData => {
  return axios.post('api/JZData/SaveCommodity', formData)
}

export const DeleteCommodity = id => {
  return axios.delete('api/JZData/DeleteCommodity/'+id)
}

 
export const SearchJZPerson = formData => {
  return axios.post('api/JZData/SearchJZPerson', formData)
}

export const DeleteJZPerson = id => {
  return axios.delete('api/JZData/DeleteJZPerson/'+id)
}

export const GetJZGroupTown =groupid => {
  return axios.get('api/JZData/GetJZGroupTown?groupid='+groupid)
}
export const TransJZPersonGroup = formData => {
  return axios.post('api/JZData/TransJZPersonGroup', formData)
}


export const SearchJZGrouphasPage = formData => {
  return axios.post('api/JZData/SearchJZGrouphasPage', formData)
}


export const DeleteJZGroup = id => {
  return axios.delete('api/JZData/DeleteJZGroup/'+id)
}


export const SavedJZGroup = formData => {
  return axios.post('api/JZData/SavedJZGroup', formData)
}


export const SaveJZPersonRemark = formData => {
  return axios.post('api/JZData/SaveJZPersonRemark', formData)
}

export const SaveJZPerson  = formData => {
  return axios.post('api/JZData/SaveJZPerson', formData)
}

export const SearchSavedJZPerson =formData=> {
  return axios.post('api/JZData/SearchSavedJZPerson',formData)
}
export const GetJZPersonById = id => {
  return axios.get('api/JZData/GetJZPersonById/'+id)
}

export const SearchJZWorkDetail =formData=> {
  return axios.post('api/JZData/SearchJZWorkDetail',formData)
}
export const SearchJZWorkDetailByDate =formData=> {
  return axios.post('api/JZData/SearchJZWorkDetailByDate',formData)
}

export const UpdateImgRotate =formData=> {
  return axios.post('api/JZData/UpdateImgRotate',formData)
}

export const SaveJZGroup =formData=> {
  return axios.post('api/JZData/SaveJZGroup',formData)
}



export const SaveJZFinalResult = formData => {
  return axios.post('api/JZData/SaveJZFinalResult', formData)
}
export const SaveJZFinalResult2 = formData => {
  return axios.post('api/JZData/SaveJZFinalResult2', formData)
}


export const DeleteJZImg = id => {
  return axios.delete('api/JZData/DeleteJZImg/'+id)
}
export const SearchAreaJZGroup = formData => {
  return axios.post('api/JZData/SearchAreaJZGroup', formData)
}

 